import { IBaseEntity } from '../../00_base/IBaseEntity';
import { Column, Entity } from 'typeorm';

/**
 * 用户表
 *
 * @author xulh
 * @since 2024/03/09
 */
@Entity('sys_user')
export class SysUser extends IBaseEntity {
  @Column('nvarchar', { name: 'username', nullable: true, length: 64 })
  username: string | null;

  @Column('nvarchar', { name: 'nickname', nullable: true, length: 64 })
  nickname: string | null;

  @Column('tinyint', { name: 'gender', nullable: true })
  gender: number | null;

  @Column('nvarchar', { name: 'password', nullable: true, length: 100 })
  password: string | null;

  @Column('int', { name: 'dept_id', nullable: true })
  deptId: number | null;

  @Column('nvarchar', { name: 'avatar', nullable: true, length: 255 })
  avatar: string | null;

  @Column('nvarchar', { name: 'mobile', nullable: true, length: 20 })
  mobile: string | null;

  @Column('tinyint', { name: 'status', nullable: true })
  status: number | null;

  @Column('nvarchar', { name: 'email', nullable: true, length: 128 })
  email: string | null;
}
